import React, { memo } from 'react'
import { useNavigate } from 'react-router-dom';
import { NavBar } from 'react-vant';
const MyNavbar = memo(() => {
  const navigate = useNavigate()
  return (
    <div>
       <NavBar
        title="标题"
        leftText="返回"
        onClickLeft={() => navigate(-1)}
      />
    </div>
  )
})

export default MyNavbar